/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pkg;

import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.JspFragment;
import javax.servlet.jsp.tagext.SimpleTagSupport;

/**
 *
 * @author Ruba
 */
public class DisplayThreadOperationsTagHandler extends SimpleTagSupport {

    /**
     * Called by the container to invoke this tag. 
     * The implementation of this method is provided by the tag library developer,
     * and handles all tag processing, body iteration, etc.
     */
    @Override
    public void doTag() throws JspException {
        JspWriter out = getJspContext().getOut();
        boolean adm = true ;  // if admin or moderator on this forum / cat
        boolean mod = true ;
        String moder ="<dd class=\"privi\"><a href=\"#\">Split</a>     <a href=\"#\">Stick</a>     <a href=\"#\">Rename</a>     <a href=\"#\">Block</a>    <a href=\"#\">Lock</a>  <a href=\"#\">Move</a><dfn></dfn></dd>";
        
        try {
            if(mod||adm)
               out.print(moder);
           // if(adm)
               // out.print(admin);
        } catch (java.io.IOException ex) {
            throw new JspException("Error in DisplayThreadOperationsTagHandler tag", ex);
        }
    }

}
